home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Ableton Live 5 / CSi Master: Ableton Live 5.iso / pc / rsrc / locrsrc / mtprsrc.dir / Internal_137_SHARED-ViewTutorialButton-.ls < prev    next >
Encoding:
Text File  |  2005-10-31  |  1.1 KB  |  39 lines

  1. on mouseDown
  2.   global SSTnewLine, SSToldLine, STnewLine, SToldLine, STlineSave, SSTlineSave
  3.   vActive = 1
  4.   vNormalMember = "lists button"
  5.   vHiliteMember = "lists button hi"
  6.   puppetSound("high beep")
  7.   puppetSprite(the clickOn, 1)
  8.   set the castNum of sprite the clickOn to the number of member vHiliteMember
  9.   updateStage()
  10.   repeat while the stillDown
  11.     case rollover(the clickOn) of
  12.       1:
  13.         set the castNum of sprite the clickOn to the number of member vHiliteMember
  14.         vActive = 1
  15.       otherwise:
  16.         set the castNum of sprite the clickOn to the number of member vNormalMember
  17.         vActive = 0
  18.     end case
  19.     updateStage()
  20.   end repeat
  21.   case vActive of
  22.     1:
  23.       set the castNum of sprite the clickOn to the number of member vNormalMember
  24.       puppetSprite(the clickOn, 0)
  25.       put EMPTY into field "sub-subtopics"
  26.       SSTnewLine = 0
  27.       SSToldLine = 0
  28.       STnewLine = 0
  29.       SToldLine = 0
  30.       STlineSave = EMPTY
  31.       SSTlineSave = EMPTY
  32.       go("map choice")
  33.     otherwise:
  34.       set the castNum of sprite the clickOn to the number of member vNormalMember
  35.       puppetSprite(the clickOn, 0)
  36.       updateStage()
  37.   end case
  38. end
  39.